home *** CD-ROM | disk | FTP | other *** search
- Path: crl.crl.com!not-for-mail
- From: bobfry@crl.com (Robert Fry)
- Newsgroups: comp.lang.c
- Subject: Re: Largest effective integer.
- Date: 10 Apr 1996 09:29:59 -0700
- Organization: CRL Dialup Internet Access
- Message-ID: <4kgnm7$hma@crl.crl.com>
- References: <4ke5gu$o7u@airdmhor.gen.nz>
- NNTP-Posting-Host: crl.com
-
- gumboot@airdmhor.gen.nz (Simon Hosie) writes:
-
- > What's the highest unsigned value you can safely represent without losing
- >integer accuracy using an ANSI defined type? For example you can get as
- >high as 4294967295 (32 bits) using an unsigned long, or 2251800000000000ish
- >(51 bits) using an IEEE 8 byte real, but I don't know what the minimum
- >limits are for reals.
-
- The problem is, you don't know for sure that an unsigned long is 32 bits
- or that your compiler is using an IEEE 8 byte real.
-
- > Basically I want a really big unsigned int and I don't care what format
- >it's in or how slow it is.
-
- Check out the documentation for <limits.h>
-
- More important, look for MAXINT.
-
-